<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
			function showWin(){
				alert("窗口左顶点位置："+window.pageXOffset+"，"+window.pageYOffset);
				alert("窗口大小："+window.innerHeight+"*"+window.innerWidth);
				//alert(window.history);
				//var hr=window.history;
				//for(var i in hr){
				//	alert(hr[i]);
				//}
				alert(window.location);
				window.location="https://www.baidu.com";
			}
			function closeWin(){
				if(confirm("您真的要走，不再聊个十块钱的？"))
					window.close();
					
			}
			function openAdv(){
				window.open("js2.html","bdqn","height=200px,width=100px");
			}
		</script>
	</head>
	<body onload="openAdv()">
		<a href="js3.html">前往js3</a>
		<input type="button" value="显示window的基本属性" onclick="showWin()"/>
		<input type="button" value="close" onclick="closeWin()" />
	</body>
</html>
